<?
	//include_once("cmsMailoutConfig.php");
	/** super class for all cms mailout contentblocks */
	class  CmsHeaderContentBlock extends CmsContentBlock {

		function CmsHeaderContentBlock () {
			parent::CmsContentBlock();
			//map the bits in for the header
			//may not need this just yet..
 			$this->keys = array_merge_recursive(
				array(
			 		EXTRACT_STRING => array(
			 			"headerContent" =>"content",
			 			"name" => "title"
			 		)
			 	),
			 	array(
			 		EXTRACT_FILE_UPLOAD =>array(
			 			"headerImage"=>"extra1"
			 		)
			 	)
			 	,$this->keys);
			 $this->requiredKeys = array_merge(
			 	array(
			 		"title"
			 	),
			 	$this->requiredKeys
			 );
			 $this->dataModelKeyMapping = array_merge(
			 	$this->dataModelKeyMapping,
			 	array(
			 		"title" => "title",
			 		"bodyContent" => "content",
			 		"pageOrder" => "extra2"
			 	)
			 );

		}

		function generateForm(&$db) {
			$id = $this->id();
			$form = "";
			//$form =  <<< EOD
			//<div id="$id" name="$id">header:$id</div>
//EOD;
			return $form;
		}


	}
?>